<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
get_header();
?>
<script type="text/javascript">
//$.getJSON("http://picasaweb.google.com/data/feed/base/user/vtpzilina/album/PovolaniePodnikatel?kind=photo&thumbsize=72&imgmax=72&alt=json-in-script&callback=?", {}, function(data){
//    document.writeln(data.toSource());
//})
</script>
<?php

echo '<h2>Novinky</h2>';

if (have_posts()) {
    while (have_posts()) {
        echo '<div class="index-post-item">';
        the_post();
        echo '<div class="index-post-item-imgwrap">';
        jr_post_image($id);
        echo '</div>';
//        $timeStamp = get_post_time();
//        $monthYear = date('M y', $timeStamp);
//        $day = date('d', $timeStamp);
        echo '<div class="index-post-item-title-wrapper">';
//        echo '<span class="index-post-item-date">';
//        echo $monthYear.'<p>'.$day.'</p>';
//        echo '</span>';
        echo '<a href="'.get_permalink($id).'" class="index-post-item-title">';
        the_title();
        echo '</a>';
        echo '<span class="index-post-item-details">';
        the_time('j. n. Y');
        echo ' / ';
        the_author();
        echo '&nbsp;&nbsp;prečítané: ';
        the_views();
        echo '</span>';
        echo '</div>';
        echo '<span class="index-post-item-excerpt">';
        the_excerpt();
        echo '</span>';
        echo '<div class="index-post-item-spacer">&nbsp;</div>';
        echo '</div>';
        
        echo '<div class="index-delimeter">&nbsp;</div>';
    }
    echo '<div id="navigation">';
    posts_nav_link();
    echo '</div>';
}

?>        
<?php
get_footer('news');
?>